package com.gis.service.impl;

import java.util.List;

import org.springframework.stereotype.Service;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.gis.entity.ProcessData;
import com.gis.mapper.ProcessMapper;
import com.gis.service.ProcessService;

@Service
public class ProcessServiceImpl extends ServiceImpl<ProcessMapper, ProcessData> implements ProcessService {

    @Override
    public ProcessData getByProcessId(Long id) {
        return this.baseMapper.selectProcessById(id);
    }

    @Override
    public List<ProcessData> getAllProcessWithNodes() {
        return this.baseMapper.selectAllProcessWithNodes();
    }
}
